package com.powernode.business.mapper;

import com.powernode.business.domain.Attachment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface AttachmentMapper {
    int deleteByPrimaryKey(Integer fileId);

    int insert(Attachment record);

    int insertSelective(Attachment record);

    Attachment selectByPrimaryKey(Integer fileId);

    int updateByPrimaryKeySelective(Attachment record);

    int updateByPrimaryKey(Attachment record);

    int saveBatch(@Param("attachments") ArrayList<Attachment> attachments);

    List<String> selectImgByCarNum(@Param("carNumber") String carNumber);

    void delImg(@Param("carNumber") String carNumber);

    int delImgBatch(@Param("carNums") List<String> carNums, @Param("username") String username);

    List<String> selectCarImgs(String carNumber);
}